Otiy Posted January 14, 2011 Report Share Posted January 14, 2011 cum pot sa fac sa mearga acest script de minigun imi da erroare.if(strcmp(cmdtext, "/minigun", true) == 0) { SendClientMessage(playerid, COLOR_ORANGE, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun"); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro SetPlayerFacingAngle(playerid, 100.5574); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 38,9999); new string[50]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name); SendClientMessageToAll(0xC2A2DAAA,string); return 1; } Link to comment Share on other sites More sharing options...
-=[Vyorel]=- Posted January 14, 2011 Report Share Posted January 14, 2011 Ce eroare, sau vrei sa o ghicim? ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
Otiy Posted January 14, 2011 Author Report Share Posted January 14, 2011 de compatibilitate Link to comment Share on other sites More sharing options...
heker Posted January 14, 2011 Report Share Posted January 14, 2011 Posteaza ce eroare lol Link to comment Share on other sites More sharing options...
Otiy Posted January 14, 2011 Author Report Share Posted January 14, 2011 C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(1) : error 010: invalid function or declarationC:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(5) : error 010: invalid function or declarationC:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6) : error 010: invalid function or declarationC:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6) : error 010: invalid function or declarationC:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6 -- 8) : error 010: invalid function or declarationC:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6 -- 8) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase6 Errors. Link to comment Share on other sites More sharing options...
deletum Posted January 15, 2011 Report Share Posted January 15, 2011 baga asaif(strcmp(cmdtext, "/minigun", true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun"); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro SetPlayerFacingAngle(playerid, 100.5574); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 38,9999); new string[50]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name); SendClientMessageToAll(0xC2A2DAAA,string); return 1; }Iti va merge am incercat pe server ;) Link to comment Share on other sites More sharing options...
IstuntmanI Posted January 15, 2011 Report Share Posted January 15, 2011 Nu ai pus sub OnPlayerCommandText, baga-l in GM sub OnPlayerCommandText, dupa {.Sau ca FS (cea mai proasta varianta, mai bine in GM):#include <a_samp> #define COLOR_ORANGE -1 public OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp(cmdtext, "/minigun", true) == 0) { SendClientMessage(playerid, COLOR_ORANGE, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun"); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro SetPlayerFacingAngle(playerid, 100.5574); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 38,9999); new string[50]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,18); format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name); SendClientMessageToAll(0xC2A2DAAA,string); return 1; } return 0; } Link to comment Share on other sites More sharing options...
deletum Posted January 15, 2011 Report Share Posted January 15, 2011 Da stiu am uitat sai zic aia la postul meu :| sorry oricum bine ca ai postat unde trebuie ;) Link to comment Share on other sites More sharing options...
Question
Otiy
cum pot sa fac sa mearga acest script de minigun imi da erroare.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts