27.07.2011, 20:07
I have the entry cord and the exit cord with strcmp how can i do red portal thing?
if(IsPlayerInCheckpoint(playerid) && PlayerToPoint(playerid, X, Y, Z) < 5) //Change x y and z to the pos of the checkpoint
{
new money = /*Minimum Ammount*/ + random(/*Maximum Ammount*/);
GivePlayerMoney(playerid, money);
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
PlayCrimeReportForPlayer(playerid, playerid, 5); //This is used to hear the sound report of the cops, like in GTA:SA
}
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")" error 001: expected token: ",", but found "-identifier-" fatal error 107: too many error messages on one line for the /rob command part, any help? |
if(strcmp(cmd, "/rob", true) == 0)
{
if(IsPlayerInCheckpoint(playerid) && PlayerToPoint(playerid, X, Y, Z) < 5)
{
//code
}
}