Urgent HELP! Error 33 array must be indexed(variable "cmd" and "tmp"
#10

Marcel said some truth. Please read it...
And this command works perfectly.
PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[128],idx;
    
cmd strtok(cmdtext,idx);
    if(
strcmp(cmd,"/tele",true)==0)
    {
        new 
tmp[128];
        
tmp strtok(cmdtext,idx);
        if(
strlen(tmp)==0) return SendClientMessage(playerid,BLUE,"Usage: /tele 1");
        if(
strval(tmp)==1)
        
SetPlayerPos(playerid,1885.7004,-2592.2048,13.5469);
        return 
1;
    }
    return 
0;

5. We aren't here to create some stuff for you, we are here to help you create some stuff when you are stuck in your development.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)