Jump to content
  • 0

Erori :|


rBcollo

Question

Am adaugat slot 3 la masini personale si imi da 4 erori...

Code:

C:\Users\Catalin\Desktop\New folder\gamemodes\eRP.pwn(18413) : error 017: undefined symbol "x_nr"
C:\Users\Catalin\Desktop\New folder\gamemodes\eRP.pwn(18455) : error 017: undefined symbol "x_nr"
C:\Users\Catalin\Desktop\New folder\gamemodes\eRP.pwn(18491) : error 017: undefined symbol "x_nr"
C:\Users\Catalin\Desktop\New folder\gamemodes\eRP.pwn(18533) : error 017: undefined symbol "x_nr"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Liniile fiind

        if(strcmp(x_nr,"lock1",true) == 0)

        if(strcmp(x_nr,"lock2",true) == 0)

        if(strcmp(x_nr,"lock3",true) == 0)

        if(strcmp(x_nr,"buy",true) == 0)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest RockStar

new x_nr[258];

x_nr = strtok(cmdtext, idx);

if(!strlen(x_nr))

Chiar sub OnPlayerCommandText...

public OnPlayerCommandText( playerid,  cmdtext[ ] )

{

new x_nr[258];

x_nr = strtok(cmdtext, idx);

if(!strlen(x_nr))

// restul codului

Link to comment
Share on other sites

   if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LordMan
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You need to login first ! ");
	            return 1;
	        }
            new x_nr[258];
	        x_nr = strtok(cmdtext, idx);
	        if(!strlen(x_nr))

Am pus ....

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.