Thread obsoleto fatal error 100: cannot read from file: "params"

Stato
Discussione chiusa ad ulteriori risposte.

Sixyears

Utente Normale
Autore del topic
18 Agosto 2011
93
29
Miglior risposta
0
Comando:
if (strcmp("/setskin", cmdtext, true, 10) == 0)
{
new targetid, skin, sendername[MAX_PLAYER_NAME], receiver[MAX_PLAYER_NAME], string[128];
if(sscanf(params,"ui", targetid, skin)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /setskin [PlayerID] [Skinmodel]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"This command is only for RCON Admins.");
if(skin > 299 || skin < 1) return SendClientMessage(playerid, 0xFFFFFFF,"Wrong Skin ID! Available ID's: 1-299");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to your server");
GetPlayerName(playerid, sendernamename, sizeof(sendername));
GetPlayerName(targetid, receivername,sizeof(receivername));
format(string, sizeof(string),"Your skin have been set to model %d by admin %s", skin, sendername);
SeneClientMessage(targetid, 0xFFFFFF, string); // Note, this message will be send to the targetid
format(string, sizeof(string),"You have set %s skin to model %d", receivername, skin);
SendClientMessage(playerid, 0xFFFFFF, string); // This will be send to the one who execute the command
return 1;
}​


problemi riscontrati

C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(83) : warning 217: loose indentation
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(1917) : warning 217: loose indentation
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2118) : error 017: undefined symbol "params"
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2122) : error 017: undefined symbol "sendernamename"
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2122) : error 035: argument type mismatch (argument 2)
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2123) : error 017: undefined symbol "receivername"
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2123) : error 017: undefined symbol "receivername"
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2123) : error 029: invalid expression, assumed zero
C:\Users\utente\Desktop\Gabbo\Progetto Develope\pawno\new.pwn(2123) : fatal error 107: too many error messages on one line

Vi mostro i miei include
#include <a_samp>
#include <streamer>
#include <sscanf2>
#include <a_npc>
 
Ho provato a inserire #include <params> ma ovviamente non esiste e mi esce il fatal error
 
Il params non si include.
Senza quell'include, che ovviamente non esiste, che errore ti da?

Anyway:
Perfavore, Entra oppure Registrati per vedere i Link!


Usa questo che dovrebbe stare tranquillo.

PS: Ti conviene utilizzare lo zCMD comunque.
 
Stato
Discussione chiusa ad ulteriori risposte.