whats wrong in this command?
#1

Quote:

public OnPlayerCommandText(cmdtext, playerid)

new Menu:tele;
{

if(strcmp(cmdtext, "/tele", true) == 0)

ShowMenuForPlayer(tele, playerid);
tele = CreateMenu(...);
return 1;

}

Errors:

C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(46) : error 025: function heading differs from prototype
C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(47) : error 003: declaration of a local variable must appear in a compound block
C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(47) : error 010: invalid function or declaration
C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(49) : error 010: invalid function or declaration
C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(51) : error 021: symbol already defined: "ShowMenuForPlayer"
C:\Users\JordiX\Desktop\samp server\gamemodes\learn.pwn(53) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
whats wrong in this command? - by universe - 05.12.2010, 22:29
Re: whats wrong in this command? - by universe - 05.12.2010, 22:35
Re: whats wrong in this command? - by Lynn - 05.12.2010, 23:04
Re: whats wrong in this command? - by rjjj - 05.12.2010, 23:09
Re: whats wrong in this command? - by fangoth1 - 05.12.2010, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)