Advertisement
MC1Stef

My problem

Jul 11th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.86 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3.     new CIP[128];
  4.     new saveip[128];
  5.     new IPN[124];
  6.     GetPlayerName(playerid, IPN, sizeof(IPN));
  7.     GetPlayerIp(playerid, CIP,sizeof(CIP));
  8.     format(saveip,sizeof(saveip),"SaveIP/%s.txt",IPN);
  9.     new File:SCIP = fopen(saveip, io_write);
  10.     if(SCIP)
  11.     {
  12.         fwrite(SCIP, CIP);
  13.         fclose(SCIP);
  14.     }
  15.     new loadm[128];
  16.     new loadmoney[64];
  17.     format(loadmoney,sizeof(loadmoney),"Stats/Money/%s.txt",PName);
  18.     new File:LM = fopen(loadmoney, io_read);
  19.     if(LM)
  20.     {
  21.         fread(LM, loadm);
  22.         fclose(LM);
  23.     }
  24.     new lmm[128];
  25.     format(lmm,sizeof(lmm),"%d",loadm);
  26.     GivePlayerMoney(playerid,lmm);
  27.  
  28.  
  29.  
  30. And This is eror:D!
  31.  
  32. C:\Users\Arsene\Desktop\Servere\SanAndreas MultiPlayer\Servere\LFC Romania 2013\gamemodes\lfcgm.pwn(203) : error 035: argument type mismatch (argument 2)
  33. Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
  34.  
  35.  
  36. 1 Error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement