CMD:buysim(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 6, 920.421142, -1361.637084, 13.003659)) { SendClientMessageEx(playerid,COLOR_GREY," You are not at the Telecom Company Arena!"); else if(GetPVarType(playerid, "Sim")) { SendClientMessageEx(playerid, COLOR_GREY, " You are already have Sim!"); return 1; } if (GetPlayerCash(playerid) >= 500) { PlayerInfo[playerid][pSim] = 1; format(string, sizeof(string), "Sim purchased, you can now look up other player's numbers."); SendClientMessageEx(playerid, COLOR_GRAD4, string); SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Type /call /sms /text /t."); if(PlayerInfo[playerid][pDonateRank] >= 1) { GivePlayerCash(playerid, -400); SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have received 20 percent off this product. Instead of paying $500, you paid $400."); } else { GivePlayerCash(playerid, -500); } } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for the Sim!"); } }
d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3769) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3776) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3783) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3792) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3806) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3813) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3817) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3820) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3827) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3834) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3849) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3852) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3859) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3866) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3880) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3889) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3901) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3909) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3934) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3948) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3956) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(3961) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(4138) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(4200) : warning 219: local variable "targetid" shadows a variable at a preceding level d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(4315) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(4335) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Scriptv1 perfect\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(4349) : error 017: undefined symbol "GivePlayerCash" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
CMD:buysim(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 6, 920.421142, -1361.637084, 13.003659)) {
SendClientMessageEx(playerid,COLOR_GREY," You are not at the Telecom Company Arena!");
}
else if(GetPVarType(playerid, "Sim")) {
SendClientMessageEx(playerid, COLOR_GREY, " You are already have Sim!");
return 1;
}
if (GetPlayerCash(playerid) >= 500)
{
PlayerInfo[playerid][pSim] = 1;
format(string, sizeof(string), "Sim purchased, you can now look up other player's numbers.");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Type /call /sms /text /t.");
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
GivePlayerCash(playerid, -400);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have received 20 percent off this product. Instead of paying $500, you paid $400.");
}
else
{
GivePlayerCash(playerid, -500);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for the Sim!");
}
}
The second brace you opened but did not close.
The most simple fix is add a } where required. |
CMD:buysim(playerid, params[])
{//1
if(!IsPlayerInRangeOfPoint(playerid, 6, 920.421142, -1361.637084, 13.003659))
{//2
SendClientMessageEx(playerid,COLOR_GREY," You are not at the Telecom Company Arena!");
else if(GetPVarType(playerid, "Sim"))
{//3
SendClientMessageEx(playerid, COLOR_GREY, " You are already have Sim!");
return 1;
}//3
if (GetPlayerCash(playerid) >= 500)
{//4
PlayerInfo[playerid][pSim] = 1;
format(string, sizeof(string), "Sim purchased, you can now look up other player's numbers.");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Type /call /sms /text /t.");
if(PlayerInfo[playerid][pDonateRank] >= 1)
{//5
GivePlayerCash(playerid, -400);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have received 20 percent off this product. Instead of paying $500, you paid $400.");
}//5
else
{//6
GivePlayerCash(playerid, -500);
}//6
}//4
else
{//7
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for the Sim!");
}//7
}//2
}//1