2 warnings
#1

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.
Reply
#2

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

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

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

Код:
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
Reply
#6

what is line 60?
Reply
#7

Sorry fixed my fault
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)