Error with a command
#1

My Error:

PHP код:
C:\Users\Immortal\Desktop\TDM\gamemodes\TeamD1.pwn(73) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664              Copyright 
(c) 1997-2006, ITB CompuPhase
1 Error
. 
My Code:

PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
CMD:teles(playerid, params[])
{
    
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleports", "Abondoned Airport\nSan Ferrieno Airport\nLos Santos Airport\nLas Venturas Airport","Teleport","Cancel");
    return 
1;
} 
On Top Of Script:

PHP код:
// Include's
#include <a_samp>
#include <sscanf2>
#include <zcmd> 
Reply
#2

PHP код:
CMD:teles(playerid, params[]) 
{ 
    
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleports", "Abondoned Airport\nSan Ferrieno Airport\nLos Santos Airport\nLas Venturas Airport","Teleport","Cancel"); 
    return 
1; 
} 
put this somewhere in your script, this shouldn't be under/ in any callbacks.

EDIT: +
PHP код:
public OnPlayerCommandText(playerid, cmdtext[]) 
remove this callback, no need of it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)