Error 17 +REP to anyone who can help
#1

Hi guys I am making a gamemode and I am using gooday's 911 system but the problem is that params is the thing giving me errors I think it might be I need the includes but heres the code

Code:
[pawn] if (strcmp("/911", cmdtext, true, 10) == 0)
{
//911 system
if(isnull(params)) return SendClientMessage(playerid, 0xFFFF0096, "USAGE: 911 message and location!");
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, 0xFFFF0096, "*DISPATCHER: Ok, Thanks! We'll get a unit to you, please remain at your location and wait.");
SendClientMessage(playerid, 0xFFFF0096, "They hang up...");
for(new i=0;i<MAX_PLAYERS;i++) {
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276) {
SendClientMessage(i, 0xFFFF0096, "-------------------------------------------------------------------------------------------------");
SendClientMessage(i, 0xFFFF0096, "DPS AUTOMATED DISPATCH");
SendClientMessage(i, 0xFFFF0096, "911 Call");
format(string, sizeof(string), "NAME: %s (ID: %i)", sendername, playerid);
SendClientMessage(i, 0xFFFF0096, string);
format(string, sizeof(string), "CALL INFO: %s", params);
SendClientMessage(i, 0xFFFF0096, string);
SendClientMessage(i, 0xFFFF0096, "Suggested action: Get to the scene for a verify of the call.");
SendClientMessage(i, 0xFFFF0096, "Call code: Unknown.");
SendClientMessage(i, 0xFFFF0096, "-------------------------------------------------------------------------------------------------");
SendClientMessage(i, 0xFFFF0096, "[INFO]A marker has been put on your GPS. Enter it to remove it.");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5.0);
}

}
return 1;
}[ /pawn

Error:
[pawn]C:\Users\Calum Smith\Desktop\SA-MP Server\gamemodes\rp.pwn(43 : error 017: undefined symbol "params"
C:\Users\Calum Smith\Desktop\SA-MP Server\gamemodes\rp.pwn(43 : error 029: invalid expression, assumed zero
C:\Users\Calum Smith\Desktop\SA-MP Server\gamemodes\rp.pwn(43 : error 017: undefined symbol "params"
C:\Users\Calum Smith\Desktop\SA-MP Server\gamemodes\rp.pwn(43 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
[ /pawn

+REP to anyone who can help
Reply


Messages In This Thread
Error 17 +REP to anyone who can help - by calzo2011 - 08.03.2012, 17:39
Re: Error 17 +REP to anyone who can help - by Twisted_Insane - 08.03.2012, 17:41
Re: Error 17 +REP to anyone who can help - by MadeMan - 08.03.2012, 17:45
Re: Error 17 +REP to anyone who can help - by calzo2011 - 08.03.2012, 17:57
Re: Error 17 +REP to anyone who can help - by Twisted_Insane - 08.03.2012, 17:59
Re: Error 17 +REP to anyone who can help - by MadeMan - 08.03.2012, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)