Register
#1

Hey , i have problem with registratsion
asking ,
asks the What is your nationality? (Las Barrancas, El Quebrados or Las Payasadas)
i answer Las Barrancas
and she ask again, What is your nationality? (Las Barrancas, El Quebrados or Las Payasadas)

pawn Код:
public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new tmp[256];
new string[256];
new giveplayerid;
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "[SЬSTEEM] Sa ei saa rддkida, kuna sind vaigistati!");
return 0;
}
if(RegistrationStep[playerid] > 0)
{
if(RegistrationStep[playerid] == 1)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("Mees", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("mees")))
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Olgu, sa oled meessoost.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Mis on sinu kodakondsus? (Las Barrancas, El Quebrados vхi Las Payasadas)");
SetPlayerSkin(playerid, 135);
PlayerInfo[playerid][pChar] = 135;
RegistrationStep[playerid] = 3;
PlayerInfo[playerid][pAge] = 16;
Reply
#2

Код:
if((strcmp("Mees", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("mees")))
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Olgu, sa oled meessoost.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Mis on sinu kodakondsus? (Las Barrancas, El Quebrados vхi Las Payasadas)");
SetPlayerSkin(playerid, 135);
SetPlayerPos(playerid, COORDS HERE); // Put your coords here of where you want them to spawn when they type "Las Barrancas"
PlayerInfo[playerid][pChar] = 135;
RegistrationStep[playerid] = 3;
PlayerInfo[playerid][pAge] = 16;
Reply
#3

Doesnt work.
Reply
#4

Instead of saying doesnt work. Tell us what doesnt work. Is it giving errors or warnings. Or no warnings and no errors and it wont work. More details :\
Reply
#5

No errors , no warnings just dont work ,
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)