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(playerid, params[])
{
    if(
IsAMedic(playerid)) && (PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pDivision] == 5)
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /getpt(patient) [player]");
        if(
IsPlayerConnected(giveplayerid))
        {
            if (
giveplayerid == playerid)
            {
                
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "You cannot accept your own Emergency Dispatch call!");
                return 
1;
            }
            if(
GetPVarInt(giveplayerid,"MedicCall") == 1)
            {
                if(
PlayerInfo[giveplayerid][pJailTime] > 0) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't use this command on jailed players.");
                if(
GetPVarInt(giveplayerid, "MASK_USED")) {
                    
format(string, sizeof(string), "EMS Driver %s has accepted the Emergency Dispatch call for (%d) [Unknown].",GetPlayerNameEx(playerid),giveplayerid);
                } else {
                    
format(string, sizeof(string), "EMS Driver %s has accepted the Emergency Dispatch call for (%d) %s.",GetPlayerNameEx(playerid),giveplayerid,GetPlayerNameEx(giveplayerid));
                }
                
SendGroupMessage(3, TEAM_MED_COLOR, string);
                
format(string, sizeof(string), "* You have accepted EMS Call from %s, you will see the marker until you have reached it.",GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
                
format(string, sizeof(string), "* EMS Driver %s has accepted your EMS Call; please wait at your current position.",GetPlayerNameEx(playerid));
                
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
                
GameTextForPlayer(playerid, "~w~EMS Caller~n~~r~Go to the red marker.", 5000, 1);
                
EMSCallTime[playerid] = 1;
                
EMSAccepted[playerid] = giveplayerid;
                
SetPVarInt(giveplayerid, "EMSAttempt", 1);
                
PlayerInfo[playerid][pCallsAccepted]++;
            }
            else
            {
                
SendClientMessageEx(playerid, COLOR_WHITE, "The person has not requested any EMS attention!");
            }
        }
    }
    else 
SendClientMessageEx(playerid, COLOR_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)