doesn't work the command error plz help
#9

Quote:
Originally Posted by Joe Staff
You can put a space in the command name, you guys are crazy.

pawn Код:
if (strcmp(cmdtext[1], "duel 1", true) == 0)
{
    SetPlayerVirtualWorld(playerid, 1);
    if(IsPlayerInAnyVehicle(playerid))SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 1); //Take the vehicle with them
    return 1;
}
Make sure that's under OnPlayerCommandText...
never tried that with strings, but if PAWN is anything like C, that will epically fail.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)