05.12.2012, 17:02
PQP.
OnPlayerStateChange = Linha 130.
Код:
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(133) : warning 211: possibly unintended assignment C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : warning 211: possibly unintended assignment C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : warning 211: possibly unintended assignment C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : error 022: must be lvalue (non-constant) C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : error 022: must be lvalue (non-constant) C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : warning 215: expression has no effect C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(135) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new vid = GetPlayerVehicleID(playerid); if(newstate = PLAYER_STATE_DRIVER) { if(vid = GroveCars[0] || vid = GroveCars[1] || vid = GroveCars[2] || GroveCars[3] || GroveCars[4] || GroveCars[5] || GroveCars[6]) { if(pDados[playerid][Grove] == 1) { // Funзгo ao ser da grove o player } else { RemovePlayerFromVehicle(playerid); } } return 1; }