16.09.2013, 11:46
(
Последний раз редактировалось Kyance; 16.09.2013 в 13:02.
)
So.. im trying to make a 'random' race, for my test server (Just for fun)..
But, since im don't really know, how the Checkpoint "system" works in Pawn, i get this error -
*bla bla bla*\test.pwn(510) : warning 202: number of arguments does not match definition
The script:
In short:
if (IsPlayerInCheckpoint(playerid))
SendClientMessageToAll(COLOR_GOLD, "%s has finished the Rally!", name);
These are the places, where it's going wrong.
I've tried setting a bracket, but i suppose i set it wrong..
Also, i sadly need to have 'specific' answers.
Like, if someone says 'You're missing a bracket there and there', it wont help for me..
Anyone that could try and help?;d
But, since im don't really know, how the Checkpoint "system" works in Pawn, i get this error -
*bla bla bla*\test.pwn(510) : warning 202: number of arguments does not match definition
The script:
Код:
if (!strcmp(cmdtext, "/rallymode", true)) {
if (!IsPlayerInAnyVehicle(playerid)) return 1;
new vehicleid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicleid, 1021);
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has entered rally-mode!", name);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_GOLD, "Rally started!");
SendClientMessage(playerid, COLOR_RED, "Head to the town!");
SetPlayerCheckpoint(playerid,-2098.3074,-2246.2427,30.6250,3.5);
if (IsPlayerInCheckpoint(playerid))
SendClientMessageToAll(COLOR_GOLD, "%s has finished the Rally!", name);
SendClientMessage(playerid, COLOR_GOLD, "Congratulations on finishing the rally!");
GivePlayerMoney(playerid, 10000);
return 1;
}
if (IsPlayerInCheckpoint(playerid))
SendClientMessageToAll(COLOR_GOLD, "%s has finished the Rally!", name);
These are the places, where it's going wrong.
I've tried setting a bracket, but i suppose i set it wrong..
Also, i sadly need to have 'specific' answers.
Like, if someone says 'You're missing a bracket there and there', it wont help for me..
Anyone that could try and help?;d


