19.06.2014, 10:56
Can somebody help me? When i compile, pawno return me this error: "error 029: invalid expression, assumed zero"
I have tried to delete the else but pawno return warnings and other errors: "function "cmd_courier" should return a value".
Can you help me?
Код:
CMD:courier(playerid,params[])
{
if(Corriere[playerid] == 1) return SendClientMessage(playerid, BIANCO, "You are already in courier mission!");
{
StatoCorriere[playerid]=1;
Corriere[playerid]=1;
NienteGod[playerid]=1;
GodTemp[playerid]=1;
VeicoliNo[playerid]=1;
VeicoliNo2[playerid]=1;
DisabilitaBoost[playerid]=1;
SetPlayerHealth(playerid, 100);
SetPlayerCheckpoint(playerid,1110.5992,-1327.9216,13.7145,10);
new nome[MAX_PLAYER_NAME], stringa[48];
GetPlayerName(playerid, nome, sizeof(nome));
format(stringa, sizeof(stringa), "%s is now a Courier", nome);
SendClientMessageToAll(GIALLO, stringa);
}
else // This is the error line <<<<<<<<<<---------
{
SendClientMessage(playerid, ROSSO,"You have to be in a courier truck to start the job! (Type /v benson");
SendClientMessage(playerid, ROSSO,"and then type again /courier)");
}
return 1;
}
Can you help me?


