Error in script
#1

C:\*******(84152) : error 017: undefined symbol "cmdtext"
Text[playerid] = 0;
return 1;
>>>>> THIS LINE>>> if(strcmp(cmdtext,"entermech",true)==0)
if(!IsPlayerInRangeOfPoint(playerid,5,1790.2391,-1720.8370,13.5395))
{
SetPlayerPos(playerid,-2029.798339,-106.675910,1035.171875);
SetPlayerInterior(playerid,3);
GameTextForPlayer(playerid,"Welcome to Cobomau Mechanics",4000,6);
return 1;
Reply
#2

Is it
pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
Callback?
Reply
#3

So..

OnPlayerCommandText(playerid, cmdtext[entermech])

or

OnPlayerCommandText(playerid, entermech[])

??
Reply
#4

It's
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/example", true))
    {
        // Code
        return 1;
    }
    // Rest Of Code
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)