Help me 4 Erros
#1

pawn Код:
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 017: undefined symbol "isStranged"
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : warning 215: expression has no effect
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 001: expected token: ";", but found "]"
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 029: invalid expression, assumed zero
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : 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.

pawn Код:
if(isStranged[playerid] == 0) //If your maks is put on
Reply
#2

You defined isStranged ?
Reply
#3

I don't know Fort Carson Roleplay 4 Erros
Reply
#4

Try this
if(IsStranged[playerid] == 0) //If your maks is put on
Reply
#5

pawn Код:
CMD:mask(playerid, params[])
{
    if(PlayerInfo[playerid][pLevel] == 0)  //If you don't want all player use it change this line
    if(isStranged[playerid] == 0) //If your maks is put on
    {
Line 13432-13436
Reply
#6

Show me the whole command
Reply
#7

Show some codes from the place where error occurs.
Reply
#8

Sighhh.....

This error
Код:
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 017: undefined symbol "isStranged"
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : warning 215: expression has no effect
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 001: expected token: ";", but found "]"
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : error 029: invalid expression, assumed zero
C:\Users\EvolutionWIN7\Desktop\PCRP.pwn(13435) : fatal error 107: too many error messages on one line
Obviously points out that you are missing a variable

pawn Код:
new isStranged[MAX_PLAYERS];
Reply
#9

Command Mask Error
Code
pawn Код:
CMD:mask(playerid, params[])
{
    if(PlayerInfo[playerid][pLevel] == 0)  //If you don't want all player use it change this line
    if(isStranged[playerid] == 0) //If your maks is put on
    {
        new randomID = random(200);
        new string[35];
        isStranged[playerid] = true;
        GetPlayerName(playerid, string, sizeof(string));
        strmid(OldUsername[playerid], string, 0, strlen(string), 64);
        format(string,sizeof(string), "Stranger", randomID);
        SetPlayerName(playerid, string);
        SetPlayerAttachedObject(playerid, 1, 19037, 2, 10, 4.7, 0.0, 90, 90, 0);//You can change this however you want, use sa-mp wiki for more info, right now is HockeyMask2
        SendClientMessage(playerid, COLOR_WHITE, "You have put on a mask! (/mask to romove it)");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 0); // ShowPlayerNameTagForPlayer(i, playerid, 0) hide name for all players
        }
    }
    else
    {
        SetPlayerName(playerid, OldUsername[playerid]);  // SetPlayerName back your Roleplay name
        isStranged[playerid] = false; // When is isStranged = false you speake normaly
        SendClientMessage(playerid, COLOR_WHITE, "You have removed your mask!"); // This is message what was send when you remove your mask
        if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1); // This line is for Object what we attached, when you write /mask this remove it.
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 1); // ShowPlayerNameTagForPlayer(i, playerid, 1) show name back.
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)