Jump to content
  • 0

undefined symbol "tmp"


Petru_Chemp

Question

if(dialogid == 29)
	{
		new idx;
		tmp = strtok(inputtext, idx);
		if(response)
	    {
			if((strcmp("masculin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Masculin")))
			{

				GetPlayerName(playerid, sendername, sizeof(sendername));
			    PlayerInfo[playerid][pSex] = 1;
			    format(string, sizeof(string), "Ok %s, deci esti baiat.", sendername);
			    SendClientMessage(playerid, 0xA51C00FF, string);
			    RegistrationStep[playerid] = 2;
			    SetPlayerSkin(playerid, 48);
			    return 0;
			}
			else if((strcmp("feminin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Feminin")))
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
			    PlayerInfo[playerid][pSex] = 2;
			    format(string, sizeof(string), "Ok %s, deci esti fata.", sendername);
			    SendClientMessage(playerid, 0xA51C00FF, string);
			    RegistrationStep[playerid] = 2;
			    SetPlayerSkin(playerid, 178);
			    return 0;
			}
		   	RegistrationStep[playerid] = 2;
		   	ShowPlayerDialog(playerid, 30, 1, "Data de nastere", "Care este data ta de nastere? (zi/luna/an)", "Ok", "");
			return 1;
		}
	}
E:\SAMP\Zonek\gamemodes\Zonek.pwn(11220) : error 017: undefined symbol "tmp"
E:\SAMP\Zonek\gamemodes\Zonek.pwn(11223) : error 017: undefined symbol "tmp"
E:\SAMP\Zonek\gamemodes\Zonek.pwn(11234) : error 017: undefined symbol "tmp"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Deasupra la

tmp = strtok(inputtext, idx);
pui
new tmp[ 256 ];
si va veni
if(dialogid == 29)
	{
		new idx;
                new tmp[ 256 ];
		tmp = strtok(inputtext, idx);
		if(response)
	    {
			if((strcmp("masculin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Masculin")))
			{

				GetPlayerName(playerid, sendername, sizeof(sendername));
			    PlayerInfo[playerid][pSex] = 1;
			    format(string, sizeof(string), "Ok %s, deci esti baiat.", sendername);
			    SendClientMessage(playerid, 0xA51C00FF, string);
			    RegistrationStep[playerid] = 2;
			    SetPlayerSkin(playerid, 48);
			    return 0;
			}
			else if((strcmp("feminin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Feminin")))
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
			    PlayerInfo[playerid][pSex] = 2;
			    format(string, sizeof(string), "Ok %s, deci esti fata.", sendername);
			    SendClientMessage(playerid, 0xA51C00FF, string);
			    RegistrationStep[playerid] = 2;
			    SetPlayerSkin(playerid, 178);
			    return 0;
			}
		   	RegistrationStep[playerid] = 2;
		   	ShowPlayerDialog(playerid, 30, 1, "Data de nastere", "Care este data ta de nastere? (zi/luna/an)", "Ok", "");
			return 1;
		}
	}

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.