Sphinx_M123 Posted January 9, 2019 Posted January 9, 2019 Salut imi da aceasta eroare cand il compilez: C:\Users\Darius\Desktop\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(44652) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. ______________________________________________________________________________ if(dialogid == /) { new emailtext[64]; mysql_real_escape_string(inputtext, emailtext); strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64); if(IsMail(inputtext) && response && strlen(inputtext)<30) { if(PlayerInfo[playerid][pLanguage] == 2) { format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]); SendClientMessage(playerid, COLOR_YELLOW, string); } else { format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]); SendClientMessage(playerid, COLOR_YELLOW, string); } } else { if(PlayerInfo[playerid][pLanguage] == 2) { SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro."); } else { SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to."); } } RegistrationStep[playerid] = 0; TutTime[playerid] = 1; TogglePlayerSpectating(playerid, 1); new connectplayer[60],stringplayer[100]; GetPlayerName(playerid,connectplayer,sizeof(connectplayer)); format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid); HLChat(COLOR_RED2,stringplayer); ABroadCast(COLOR_RED2,stringplayer,1); foreach(Player,iss) { if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0) { KillTimer(deathdeletetime[iss]); SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200); deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss); } } return 1; }
0 LucaAdv. Posted January 9, 2019 Posted January 9, 2019 incloc de if(dialogid == /) pune asta: if(dialogid == 4) GameMode Edited: gamemode Servicii Scripting: Contact: Email: [email protected] Discord: LucaAdv // LHS#9084
0 razvanduciuc Posted January 9, 2019 Posted January 9, 2019 (edited) 21 minutes ago, Sphinx_M123 said: Salut imi da aceasta eroare cand il compilez: C:\Users\Darius\Desktop\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(44652) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. ______________________________________________________________________________ if(dialogid == /) { new emailtext[64]; mysql_real_escape_string(inputtext, emailtext); strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64); if(IsMail(inputtext) && response && strlen(inputtext)<30) { if(PlayerInfo[playerid][pLanguage] == 2) { format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]); SendClientMessage(playerid, COLOR_YELLOW, string); } else { format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]); SendClientMessage(playerid, COLOR_YELLOW, string); } } else { if(PlayerInfo[playerid][pLanguage] == 2) { SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro."); } else { SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to."); } } RegistrationStep[playerid] = 0; TutTime[playerid] = 1; TogglePlayerSpectating(playerid, 1); new connectplayer[60],stringplayer[100]; GetPlayerName(playerid,connectplayer,sizeof(connectplayer)); format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid); HLChat(COLOR_RED2,stringplayer); ABroadCast(COLOR_RED2,stringplayer,1); foreach(Player,iss) { if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0) { KillTimer(deathdeletetime[iss]); SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200); deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss); } } return 1; } Serios man? if(dialogid == /) in loc de asta pune id(dialogid == DIALOG_REGISTER4) Ca ti-am gasit dialog-ul pe un bigzone! Edited January 9, 2019 by razvanduciuc Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.
0 LucaAdv. Posted January 10, 2019 Posted January 10, 2019 Citat @razvanduciuc =]]] Am adormit =)))) Acolo GameMode Edited: gamemode Servicii Scripting: Contact: Email: [email protected] Discord: LucaAdv // LHS#9084
0 Sphinx_M123 Posted January 10, 2019 Author Posted January 10, 2019 (edited) Acum 16 ore, razvanduciuc a spus: Serios om? Ca ti-am gasit dialogul pe o mare zona! Sunt incepator CSF Mi-am mai dat drumul la mana..am scimbat spawn,ds/dmv..(checkpoints dmv) Edited January 10, 2019 by Sphinx_M123
0 razvanduciuc Posted January 10, 2019 Posted January 10, 2019 8 hours ago, Sphinx_M123 said: Sunt incepator CSF Mi-am mai dat drumul la mana..am scimbat spawn,ds/dmv..(checkpoints dmv) Bravo, incer se invata. Dar invata frumos! Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.
Question
Sphinx_M123
Salut imi da aceasta eroare cand il compilez:
C:\Users\Darius\Desktop\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(44652) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
______________________________________________________________________________
if(dialogid == /)
{
new emailtext[64];
mysql_real_escape_string(inputtext, emailtext);
strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
if(IsMail(inputtext) && response && strlen(inputtext)<30)
{
if(PlayerInfo[playerid][pLanguage] == 2)
{
format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
else
{
if(PlayerInfo[playerid][pLanguage] == 2)
{
SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to.");
}
}
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerSpectating(playerid, 1);
new connectplayer[60],stringplayer[100];
GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid);
HLChat(COLOR_RED2,stringplayer);
ABroadCast(COLOR_RED2,stringplayer,1);
foreach(Player,iss)
{
if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0)
{
KillTimer(deathdeletetime[iss]);
SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200);
deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss);
}
}
return 1;
}
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now