- 0
[ajutor]sistem pe mysql
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
rpg
-
Adăugaţi cât mai multe detalii (în ce funcţie se întâmplă, la ce linie, cât de des se întâmplă, etc.):Salut!De curand am adaugat pe gm-ul meu un sistem nou pe mySQL.Poblema este ca da o eroare la o comanda,si nu-i pot da de cap(o aveti mai jos):
-
Adăugaţi mereu eroarea / erorile sau warning-ul / warning-urile.:
-
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 017: undefined symbol "strdel"
-
Adăugaţi şi codul sursă pentru a va putea ajută (nu tot gamemode-ul / filterscript-ul).:
-
CMD:removegarage(playerid,params[])
Linia erorii: }C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 001: expected token: ";", but found ")"
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 029: invalid expression, assumed zero
C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : fatal error 107: too many error messages on one line
{
if(!IsPlayerAdmin(playerid)) return 0;
for(new i=0; i < garageCount+1; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, gInfo[PosX], gInfo[PosY], gInfo[PosZ]))
{
new sql[128];
format(sql,sizeof(sql),"DELETE FROM `garages` WHERE `UID`='%d'",gInfo[UID]);
mysql_query(sql);
format(gInfo[Owner],24,"REMOVED");
gInfo[Owned] = -999;
gInfo[Price] = -999;
gInfo[Interior] = -999;
gInfo[UID] = -999;
gInfo[PosX] = -999;
gInfo[PosY] = -999;
gInfo[PosZ] = -999;
gInfo[Locked] = -999;
DestroyDynamic3DTextLabel(garageLabel);
DestroyDynamicPickup(garagePickup);
SendClientMessage(playerid, COLOR_SUCCESS, "You have removed this garage.");
return 1;
}
}
SendClientMessage(playerid, COLOR_ERROR,"Error: You're not near any garage.");
return 1;
}
5 answers to this question
Recommended Posts