Any Idea
#1

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 137)
{
if(response)
{
577: PlayerData[playerid][Step] = 1;
578: SendClientMessage(playerid, COLOR_GREY, "Walk out onto the car park and go into the checkpoint.");
579 : SetPlayerCheckpoint(playerid, -2028.2227,-91.8504,33.3203, 2.00);
new 500 = 123456789
GivePlayerMoney(playerid, -x);
}
}
return 1;
}

Thats the pawno code ^

Quote:

C:\Documents and Settings\Administrator\Desktop\Under Construction\gamemodes\new.pwn(577) : error 017: undefined symbol "PlayerData"
C:\Documents and Settings\Administrator\Desktop\Under Construction\gamemodes\new.pwn(577) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Under Construction\gamemodes\new.pwn(577) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\Under Construction\gamemodes\new.pwn(577) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Under Constructi

Any idea why I get these errors ?
Reply
#2

You should use switch:
pawn Код:
switch(whatdoyouwanttoswitch) {
case 577: Player[..]
}
Reply
#3

you forgot to declare the enum of PlayerData[][] in your script. the line 577 shows that its not global initialized. i dont get this "new 500=123456789" - a string should not start with a numerical character. try
Код:
new FiveHundret=1234567890;
ah, the enum could look like this:
Код:
enum ePlayerData{
	Step,
	put,
	more,
	here (and dont forget to leave the comma here out in this last line. the enum ends.)
}
new gPlayerData[MAX_PLAYERS][ePlayerData];//pay attentioin to the "e" and "g" i put as prefix. it means "e"numered and "g"lobal...
later then you can easily change a
Код:
gPlayerData[playerid][Step]=1;
Reply
#4

MAN I ALREADY TOLD YOU IN ANOTHER POST DONT SPAMING U WANT TO GET BANNED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)