08.03.2017, 12:17
// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
for(new i; i < sizeof(antisqlinjection); i++)
{
if(strfind(inputtext, antisqlinjection[i], true) != -1)
{
SCM(playerid, -1, "Nu sunt permise asemenea caractere.");
return 1;
}
}
new vehicleid = GetPlayerVehicleID(playerid); //here i have a problem.
new sendername[25];
new string[300];
if( dialogid == DIALOG_TW )
{
if( !response )
{
//ban this idiot!!
new year,month,day;
getdate(year, month, day);
day += 7;
if (IsMonth31(month))
{
if (day > 31)
{
month += 1;
if (month > 12)
{
year += 1;
while(day > 31) day -= 31;
}
else while(day > 31) day -= 31;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
for(new i; i < sizeof(antisqlinjection); i++)
{
if(strfind(inputtext, antisqlinjection[i], true) != -1)
{
SCM(playerid, -1, "Nu sunt permise asemenea caractere.");
return 1;
}
}
new vehicleid = GetPlayerVehicleID(playerid); //here i have a problem.
new sendername[25];
new string[300];
if( dialogid == DIALOG_TW )
{
if( !response )
{
//ban this idiot!!
new year,month,day;
getdate(year, month, day);
day += 7;
if (IsMonth31(month))
{
if (day > 31)
{
month += 1;
if (month > 12)
{
year += 1;
while(day > 31) day -= 31;
}
else while(day > 31) day -= 31;
}
}