Jump to content
  • 0

pomoc Help /w id


Sn1PDR

Dotaz

Prosím pomoc :(

 

 

Mám tam new mám tam vše aj Public ale hází mi to toto :(

 

 

 

C:\Documents and Settings\Sn1P\Plocha\pawno\mode.pwn(478) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

1 Warning.

 

 

//WEATHER
dcmd_w(playerid, params[]) {
new idx, iString[128];
iString = strtok(params, idx);
if (!strlen(iString)) {
 SendClientMessage(playerid, 0x00AAFFFF, "[uSAGE]: /w ID or /weather ID");
 return true;
}
idx = strval(iString);
if (idx < MIN_TIME_ID || idx > MAX_TIME_ID) {
 SendClientMessage(playerid, 0x00AAFFFF, "[ERROR]: Invalid weather ID");
 return true;
}
gWorldStatus[1] = idx;
SetPlayerWeather(playerid,idx,0);
format(iString, 128, "[sUCCESS]: Weather has been changed to %d", idx);
SendClientMessage(playerid, 0x00AAFFFF, iString);
return true;
}
// + celé
dcmd_weather(playerid, params[]) {
dcmd_w(playerid, params);
return true;
}

 

 

řádek 478 : SetPlayerWeather(playerid, idx,0);

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Administrátor

Ty jsi napsal moc argumentů a já nepsal co má čim nahradit. Are you normal ?

 

Tím že mu napíšeš co přesně má udělat mu moc nepomůžeš akorát ho naučíš kopírovat.

Ale neřeš nepochopil by si to

Link to comment
Share on other sites

  • 0

Jednou napsat to nestačí ?

ale já napsal

místo SetPlayerWeather(playerid, idx,0); dej SetPlayerWeather(playerid, idx);

A co, tak si to zkopíruje, kdybych mu napsal odeber 0 tak je to to samý.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...