SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/10/2019, 07:44 PM   #1
VulgoAlejadin
Little Clucker
 
Join Date: Oct 2019
Posts: 4
Reputation: 0
Default error 010: invalid function or declaration

alguem me ajuda a resolver essse erro : error 010: invalid function or declaration

if(strcmp(cmdtext, “/repararveh”, true) == 0) // Comando de Reparar o Veículo
{
(!IsPlayerInAnyVehicle(playerid)); // Se o Player não estiver dentro de um Véiculo
{
SendClientMessage(playerid, 0x63AFF00A, “[ERRO] Você não está dentro de um Veículo.”); return 1;
}
GetPlayerVehicleID(playerid); // Pega o ID do Veiculo que o Player estiver dentro
RepairVehicle(GetPlayerVehicleID(playerid)); // Repara o Veículo que o Player estiver dentro
SendClientMessage(playerid, 0x63AFF00A, “Parabéns seu Veículo foi reparado com sucesso.”);
}
VulgoAlejadin is offline   Reply With Quote
Old 20/10/2019, 08:02 PM   #2
Florin48
Huge Clucker
 
Join Date: Nov 2015
Location: Romania
Posts: 266
Reputation: 5
Default Re: error 010: invalid function or declaration

you can try to use a new order processor as this is outdated, the problem may be solved but in the future it is good to move to another.

Quote:
if(strcmp(cmdtext, "/repararveh", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0x63AFF00A, "[ERRO] Você não está dentro de um Veículo.");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x63AFF00A, "Parabéns seu Veículo foi reparado com sucesso.");
}
__________________
Quote:
If I helped you for a while, do not forget to reward me with a good reputation.
Discord: [ SherKan#8573 ]
Support me: [ http://bit.do/suppor_my ]
Gamemode for sale: [ http://bit.do/gamemode ]
Support Scripting(beta project): [ http://bit.do/support_scripting ]
Florin48 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird error: invalid symbol name and invalid function or declaration Reboma Scripting Help 1 04/02/2014 11:58 AM
error 010: invalid function or declaration & warning 235: public function lacks forward declaration (symbol "Drag") tboysamp Scripting Help 1 14/04/2013 06:10 AM
[HELP]error 010: invalid function or declaration endjuru Help Archive 2 21/04/2010 07:06 AM


All times are GMT. The time now is 05:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.