Quantcast
Channel: Forum VeryGames
Viewing all articles
Browse latest Browse all 5196

Problème de codage sourcepawn ?

$
0
0
Bonjours,


Hier j'ai coder un petit plugins timer, pour que des messages se diffuse sur le serveur a répétition mais sans succès .

Code PHP:

#include <sourcemod>
#include <sdktools>


someFunction()
{
    
CreateTimer(10.0Timer_textTIMER_REPEAT);
}


public 
Action:Timer_text(Handle:timer)
{
switch (
GetRandomInt(15))
{
case 
1:
PrintToChatAll("phrase1");

{
case 
2:
PrintToChatAll("phrase2");

{
case 
3:
PrintToChatAll("phrase3");

{
case 
4:
PrintToChatAll("phrase5");

{
case 
5:
PrintToChatAll("phrase5");

}







Cordialement,

Viewing all articles
Browse latest Browse all 5196