SA-MP Forums Archive
2 warnings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 warnings (/showthread.php?tid=132273)



2 warnings - Pawel2k9 - 07.03.2010

pawn Код:
new Float:gStoredSkin[MAX_PLAYERS][1];

StorePlayerSkin(playerid)
{
  GetPlayerSkin(playerid, gStoredSkin[playerid][0]);//warning 1
}

SetPlayerSkinToStoredSkin(playerid)
{
  SetPlayerSkin(playerid, gStoredSkin[playerid][0]);//warning 2
}
Код:
 warning 202: number of arguments does not match definition
 warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.



Re: 2 warnings - cessil - 07.03.2010

you're using a float to save a skin id, get rid of the Float:


Re: 2 warnings - Pawel2k9 - 07.03.2010

done, but still one warning with the top line
Код:
  GetPlayerSkin(playerid, gStoredSkin[playerid][0]);//warning 1



Re: 2 warnings - cessil - 07.03.2010

use this instead of that line
Код:
gStoredSkin[playerid][0] = GetPlayerSkin(playerid);



Re: 2 warnings - Pawel2k9 - 07.03.2010

Код:
C:\DOCUME~1\Pawel\Pulpit\SAMP\GAMEMO~1\airport.pwn(60) : error 017: undefined symbol "gStoredSkin"
C:\DOCUME~1\Pawel\Pulpit\SAMP\GAMEMO~1\airport.pwn(60) : warning 215: expression has no effect
C:\DOCUME~1\Pawel\Pulpit\SAMP\GAMEMO~1\airport.pwn(60) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Pawel\Pulpit\SAMP\GAMEMO~1\airport.pwn(60) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Pawel\Pulpit\SAMP\GAMEMO~1\airport.pwn(60) : fatal error 107: too many error messages on one line



Re: 2 warnings - cessil - 07.03.2010

what is line 60?


Re: 2 warnings [FIXED] - Pawel2k9 - 07.03.2010

Sorry fixed my fault