Error with a command
#1

My Error:

PHP код:
C:\Users\Immortal\Desktop\TDM\gamemodes\TeamD1.pwn(73) : error 029invalid expressionassumed zero
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

My Code:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
CMD:teles(playeridparams[])
{
    
ShowPlayerDialog(playerid2DIALOG_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(playeridparams[]) 

    
ShowPlayerDialog(playerid2DIALOG_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(playeridcmdtext[]) 
remove this callback, no need of it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)