[Pomoc]Warnovi Hitno ostao 1 warn!!! help!

Započeo Abarth_Script
6. Jan. 2013. Zaključano
525
pregleda
10
postova
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
Skripta:TG:RP v1.1
Problem:Warnovi koji su nastali menjanjem spawn-a itd..
Warnovi:
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4804) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4811) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4818) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4825) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4832) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(4839) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(23576) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(23755) : warning 202: number of arguments does not match definition
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(25047) : warning 219: local variable "txtid" shadows a variable at a preceding level
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(36920) : warning 202: number of arguments does not match definition

Linije😛oredjane su po redu!1warn1linija!
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
SetPlayerPos(playerid,1715.0421,-1901.6783,13.5665,179.4458);
if (PlayerToPoint(3.0, playerid,1508.2042,-1791.2003,14.0847,181.7054))//Opstina enter
SetPlayerPos(playerid,1508.2042,-1791.2003,14.0847,181.7054);
new txtid;
if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1508.2042,-1791.2003,14.0847,181.7054))
Raymond
3
Hustler
6. Jan. 2013.
Uvek stavljas prve 3 koordinate bilosta da radis 😄
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
Hvala vam puno ali ostao je samo jos jedan
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(25047) : warning 219: local variable "txtid" shadows a variable at a preceding level

eo vam cela linija:
	if(strcmp(cmd, "/cnnn", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 5)
{
tmp = strtok(cmdtext, idx);
new txtid;
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /cnnn ");
return 1;
}
txtid = strval(tmp);
if(txtid == 2)
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemozete odabrati 2");
return 1;
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /cnnn [cnnc tekst ~n~=Newline ~r~=Crvena ~g~=Zelena ~b~=Plava ~w~=Bijela ~y~=Zuta]");
return 1;
}
format(string, sizeof(string), "~w~%s",result);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
GameTextForPlayer(i, string, 5000, txtid);
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_CRVENA, " Niste administrator ili ste premalen level ");
return 1;
}
}
return 1;
}
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
kolko vidim ne brate
Blaeks_Biofor
5
Forum Don
6. Jan. 2013.
ne mozes 2 puta imati iste varijable , znaci ne umes 2 puta imati
new bla; 
i ispod toga
new bla;
znaci promeni mu ime u koje oces
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
brate nemoj da se ljutis pocetnik sam ali nekontam gde ima 2 iste ?
Blaeks_Biofor
5
Forum Don
6. Jan. 2013.
promeni taj txtid u txtidd i gotovo
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
C:\Documents and Settings\oem\Desktop\Total Gaming v1.1\gamemodes\TGRP.pwn(25047) : warning 203: symbol is never used: "txtidd"
Blaeks_Biofor
5
Forum Don
6. Jan. 2013.
pa vidis da ti to ni ne treba, nigde se ne koristi, obrisi ga
Nebojsa Stoske
4
Shot Caller
6. Jan. 2013.
Hvala brate mnogo 🙂 lock ovo

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha