Help (Pawn Errors - Entire gamemode) -
NeroX98 - 24.02.2012
Hi i have a little problems with edited GF gamemode. I have downloaded this GM but i thing the GM is 0.3c and i convert to 0.3d but now when i open to script something it's giving me a error. (I open gamemode and i convert without scripting and changing anything but it still gives a error...)
On line 1548:
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE,"dogja policija begajte" string);
Errors:
C:\Users\Stefan\Desktop\DREAMWORLD.pwn(154
: error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Stefan\Desktop\DREAMWORLD.pwn(154
: warning 215: expression has no effect
C:\Users\Stefan\Desktop\DREAMWORLD.pwn(154
: error 001: expected token: ";", but found ")"
C:\Users\Stefan\Desktop\DREAMWORLD.pwn(154
: error 029: invalid expression, assumed zero
C:\Users\Stefan\Desktop\DREAMWORLD.pwn(154
: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Entire paragraph:
Код:
public RobDone2(playerid)
{
new string[255];
for(new i = 0; i < MAX_PLAYERS; i++)
{
new vehicleid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehicleid);
if(modelid == 482|| modelid == 482)
{
SendClientMessage(playerid, COLOR_WHITE, "Uspesno ja ograbivte bankata.");
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "VESTI: %s ja ograbi bankata", sendername);
SendFamilyMessage(1,COLOR_RED, "Bankata e ograbena.");
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE,"dogja policija begajte" string);
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE, "Vasata Mafija dobi $40000 na racunot");
GivePlayerMoney(playerid, 40000);
SetPlayerColor(playerid,0xFF800096);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, " ** Ne ste vo Kombeto so parite ! **");
}
}
return 0;
}
AW: Help (Pawn Errors - Entire gamemode) -
Drebin - 24.02.2012
pawn Код:
public RobDone2(playerid)
{
new string[255];
for(new i = 0; i < MAX_PLAYERS; i++)
{
new vehicleid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehicleid);
if(modelid == 482|| modelid == 482)
{
SendClientMessage(playerid, COLOR_WHITE, "Uspesno ja ograbivte bankata.");
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "VESTI: %s ja ograbi bankata", sendername);
SendFamilyMessage(1,COLOR_RED, "Bankata e ograbena.");
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE,"dogja policija begajte");
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE, "Vasata Mafija dobi $40000 na racunot");
GivePlayerMoney(playerid, 40000);
SetPlayerColor(playerid,0xFF800096);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, " ** Ne ste vo Kombeto so parite ! **");
}
}
return 0;
}