Ottima guida che si capisce, ma non capisco perchè ogni volta che trovo un nuovo script la sventura non me lo fa funzionare...( lol ) cmq ecco qua lo script:
la macchina:
veicolo = AddStaticVehicleEx(490,1354.7388,-629.9080,109.1328,18.4137,0,0); //fbics
il codice, infondo al callback
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid=GetPlayerVehicleID(playerid);
if(strfind(PlayerName(playerid),"[ITW]schizzo_ita",true) && vehicleid == V)
{
SendClientMessage(playerid, COLOR_PINK, "[ITW]schizzo_ita");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
gli errori:
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(185) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(203) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(213) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(1161) : warning 202: number of arguments does not match definition
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(1643) : error 017: undefined symbol "PlayerName"
K:\SA-MP 0.3a Server\gamemodes\PowerDM.pwn(1161) : warning 204: symbol is assigned a value that is never used: "veicolo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Messaggio modificato da schizzo_ita il 16 settembre 2010 - 19:20