[Pomoc] Gamemode

Započeo NeroX, Februar 24, 2012, 22:03:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam editovan GF gamemode (Drreamwworld) ali bio je 0.3c ja sam ga prebacio na 0.3d i sad kad idem da skriptam u njega daje mi error: (znaci otvorim pawn, otvorim gamemode i nista neskriptam idem odma convert/run ali nece...)

On line 1548:
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LIGHTBLUE,"dogja policija begajte" string);

Errors:
C:\Users\Stefan\Desktop\[cenzura].pwn(1548) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Stefan\Desktop\[cenzura].pwn(1548) : warning 215: expression has no effect
C:\Users\Stefan\Desktop\[cenzura].pwn(1548) : error 001: expected token: ";", but found ")"
C:\Users\Stefan\Desktop\[cenzura].pwn(1548) : error 029: invalid expression, assumed zero
C:\Users\Stefan\Desktop\[cenzura].pwn(1548) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664    Copyright (c) 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;
}
Poslednja Izmena: Februar 24, 2012, 22:03:52 POSLE PODNE od NeroX

Probaj ovako ako budes imao jos problema postavi mi onda public ili stock SendFamilyMessage ...
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(playerid,COLOR_RED, "Bankata e ograbena.");
                SendFamilyMessage(playerid,COLOR_LIGHTBLUE,"dogja policija begajte" string);
                SendFamilyMessage(playerid,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;
}