Dialog:MDCVehicle(playerid, response, listitem, inputtext[])
{
if (GetFactionType(playerid) != FACTION_POLICE || !IsACruiser(GetPlayerVehicleID(playerid)))
return 0;
if(response)
{
new string[256];
for(new i=0; i<MAX_VEHICLES; i++)
{
if(strcmp(inputtext,CarData[i][carPlaca], true) == 0)
{
if(strcmp(inputtext,CarData[i][carPlaca], false) == 0)
{
Dialog_Show(playerid, MDCVehicle, DIALOG_STYLE_INPUT, "Mobile Data Computer - Procura de Placa", "PROCURA DE PLACA\n\nInsira a informaзгo da placa:\n{FF0000}Placa nгo encontrada.", "OK", "");
return 1;
}
format(string, sizeof(string), "RESULTADO DE BUSCA\n\nPlaca do Veнculo: %d\nModelo do Veнculo: %s\nDono do Veнculo: %s", CarData[i][carPlaca], ReturnVehicleModelName(CarData[i][carModel]), CarData[i][carOwner]);
Dialog_Show(playerid, MDCResult, DIALOG_STYLE_MSGBOX, "Procurar Placa", string, "Cancelar", "");
}
}
}
return 1;
}
[23:30:21] [debug] Server crashed while executing roleplay.amx
[23:30:21] [debug] AMX backtrace: [23:30:21] [debug] #0 native strcmp () [00406540] from samp-server.exe [23:30:21] [debug] #1 native CallLocalFunction () [00474390] from samp-server.exe [23:30:23] [debug] Native backtrace: [23:30:23] [debug] #0 74ff4f2d in ?? () from C:\Windows\syswow64\USER32.dll [23:30:23] [debug] #1 004061b4 in ?? () from C:\Users\PC\Desktop\SAMP\MinhaGM\samp-server.exe |
Aparece tudo certo no server log?
#edit Jб vi. Tente se informar nesse link: https://sampwiki.blast.hk/wiki/Fread |
if(strcmp(inputtext,CarData[i][carPlaca], true) == 0)
{
if(strcmp(inputtext,CarData[i][carPlaca], false) == 0)
{
Sу que minha GM й MYSQL, ele estб salvando tudo no banco de dados dela.
|
/* Sa-Mp Include Fix
*
* © by Kaliber, 2015
*
*/
/******************************************************************************/
#if !defined _samp_included
#include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
#endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fopen(name[], filemode:mode = io_readwrite) = fopen;
native __fwrite(File:handle, const string[]) = fwrite;
native __fread(File:handle, string[], size = sizeof string, bool: pack = false) = fread;
native __fclose(File:handle) = fclose;
/******************************************************************************/
stock File:_fopen(name[], filemode:mode = io_readwrite) {
const File:error = File:-1;
return (!fexist(name)) ? error : File:__fopen(name,mode);
}
/******************************************************************************/
#if defined _ALS_fopen
#undef fopen
#else
#define _ALS_fopen
#endif
#define fopen _fopen
/******************************************************************************/
stock _fwrite(File:handle, const string[])
return (handle == File:-1) ? 0 : __fwrite(handle,string);
/******************************************************************************/
#if defined _ALS_fwrite
#undef fwrite
#else
#define _ALS_fwrite
#endif
#define fwrite _fwrite
/******************************************************************************/
stock _fread(File:handle, string[], size = sizeof string, bool: pack = false)
return (handle == File:-1) ? 0 : __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
#undef fread
#else
#define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/
stock _fclose(File:handle)
return (handle == File:-1) ? 0 : __fclose(handle);
/******************************************************************************/
#if defined _ALS_fclose
#undef fclose
#else
#define _ALS_fclose
#endif
#define fclose _fclose
/******************************************************************************/
#include <fix>