Error undefined symbol "playerid"
#1

Код:
C:\Users\Samy\Desktop\DSR Clan\gamemodes\DSRCLAN.pwn(7579) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
if(Italian[playerid] == 1)  SendClientMessageToAll(WHITE, "Bla Bla");
Reply
#2

And how about posting the full callback?
Probbably the callback you're using this doesn't support "playerid" (for example OnGameModeInit( ) ).
Reply
#3

Show we that forward .
Reply
#4

Forward? I have only this:
pawn Код:
new
    English[MAX_PLAYERS],
    Italian[MAX_PLAYERS];
Reply
#5

Up Anyone can help me?
Reply
#6

Post the callback, as Mean said.
Reply
#7

Код:
new Italian[MAX_PLAYERS];
new English[MAX_PLAYERS];

if(Italian[playerid] == 1) {
SendClientMessageToAll(WHITE, "Bla Bla");
}
if(English[playerid] == 1) {
SendClientMessageToAll(NAWBS, "Open your damn eyes!");
}
...return 1;
Reply
#8

Ah Sorry I don't stand so good

Look this:

pawn Код:
public A1()
{
    if(Italian[playerid] == 1)  SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");

    An2 = SetTimer("A2", 450000, 1);
    KillTimer(An1);
    return 1;
}
Reply
#9

Quote:
Originally Posted by SamyRomafia
Посмотреть сообщение
Ah Sorry I don't stand so good

Look this:

pawn Код:
public A1()
{
    if(Italian[playerid] == 1)  SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");

    An2 = SetTimer("A2", 450000, 1);
    KillTimer(An1);
    return 1;
}
pawn Код:
forward A1(playerid); //At the top of your script you should have "forward A1(); replace that with this.

public A1(playerid)
{
    if(Italian[playerid] == 1)  SendClientMessage(WHITE, "Ai gasit vrun codat?!Apai scrie ( /report [id] [reason] )");

    An2 = SetTimer("A2", 450000, 1);
    KillTimer(An1);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)