Error 029 help
#1

Код:
./includes/commands.pwn(36457) : error 029: invalid expression, assumed zero
./includes/commands.pwn(36457 -- 36458) : error 029: invalid expression, assumed zero
./includes/commands.pwn(36494) : error 029: invalid expression, assumed zero
PHP код:
CMD:getpt(playeridparams[])
{
    if(
IsAMedic(playerid)) && (PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pDivision] == 5)
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /getpt(patient) [player]");
        if(
IsPlayerConnected(giveplayerid))
        {
            if (
giveplayerid == playerid)
            {
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"You cannot accept your own Emergency Dispatch call!");
                return 
1;
            }
            if(
GetPVarInt(giveplayerid,"MedicCall") == 1)
            {
                if(
PlayerInfo[giveplayerid][pJailTime] > 0) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't use this command on jailed players.");
                if(
GetPVarInt(giveplayerid"MASK_USED")) {
                    
format(stringsizeof(string), "EMS Driver %s has accepted the Emergency Dispatch call for (%d) [Unknown].",GetPlayerNameEx(playerid),giveplayerid);
                } else {
                    
format(stringsizeof(string), "EMS Driver %s has accepted the Emergency Dispatch call for (%d) %s.",GetPlayerNameEx(playerid),giveplayerid,GetPlayerNameEx(giveplayerid));
                }
                
SendGroupMessage(3TEAM_MED_COLORstring);
                
format(stringsizeof(string), "* You have accepted EMS Call from %s, you will see the marker until you have reached it.",GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* EMS Driver %s has accepted your EMS Call; please wait at your current position.",GetPlayerNameEx(playerid));
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
GameTextForPlayer(playerid"~w~EMS Caller~n~~r~Go to the red marker."50001);
                
EMSCallTime[playerid] = 1;
                
EMSAccepted[playerid] = giveplayerid;
                
SetPVarInt(giveplayerid"EMSAttempt"1);
                
PlayerInfo[playerid][pCallsAccepted]++;
            }
            else
            {
                
SendClientMessageEx(playeridCOLOR_WHITE"The person has not requested any EMS attention!");
            }
        }
    }
    else 
SendClientMessageEx(playeridCOLOR_GRAD1"You're not authorized to use this command!");
    return 
1;

Reply
#2

http://forum.sa-mp.com/showpost.php?...60&postcount=1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)