SA-MP Forums Archive
Car respawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car respawn (/showthread.php?tid=352285)



Car respawn - nogh445 - 19.06.2012

This is the code:

pawn Код:
CMD:rcars(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, COLOR_RED, "Only RCON Administrators can use this command");
        return 1;
    }
    else
    for(new i=1; i<MAX_VEHICLES; i++)
    {
       SetVehicleToRespawn(i);
       SendClientMessageToAll(playerid, COLOR_RED, "All unused vehicles have been respawned by an Administrator."); // ----------- line 1645
    }
    return 1;
}
Here are the errors:
Код:
C:\Users\user\Desktop\KM\pawno\KM.pwn(1645) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Can anyone help?


Re: Car respawn - Skaizo - 19.06.2012

pawn Код:
SendClientMessageToAll(COLOR_RED, "All unused vehicles have been respawned by an Administrator.");